package com.gx.po;

import java.io.Serializable;

/**
 * hotel_info
 * @author 
 */
public class HotelInfo implements Serializable {
    private Integer id;

    private String hotelName;

    private String hotelAddress;

    private String hotelPhone;

    private String hotelLevel;

    private Integer dayRoomInfoId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public String getHotelAddress() {
        return hotelAddress;
    }

    public void setHotelAddress(String hotelAddress) {
        this.hotelAddress = hotelAddress;
    }

    public String getHotelPhone() {
        return hotelPhone;
    }

    public void setHotelPhone(String hotelPhone) {
        this.hotelPhone = hotelPhone;
    }

    public String getHotelLevel() {
        return hotelLevel;
    }

    public void setHotelLevel(String hotelLevel) {
        this.hotelLevel = hotelLevel;
    }

    public Integer getDayRoomInfoId() {
        return dayRoomInfoId;
    }

    public void setDayRoomInfoId(Integer dayRoomInfoId) {
        this.dayRoomInfoId = dayRoomInfoId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HotelInfo other = (HotelInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHotelName() == null ? other.getHotelName() == null : this.getHotelName().equals(other.getHotelName()))
            && (this.getHotelAddress() == null ? other.getHotelAddress() == null : this.getHotelAddress().equals(other.getHotelAddress()))
            && (this.getHotelPhone() == null ? other.getHotelPhone() == null : this.getHotelPhone().equals(other.getHotelPhone()))
            && (this.getHotelLevel() == null ? other.getHotelLevel() == null : this.getHotelLevel().equals(other.getHotelLevel()))
            && (this.getDayRoomInfoId() == null ? other.getDayRoomInfoId() == null : this.getDayRoomInfoId().equals(other.getDayRoomInfoId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHotelName() == null) ? 0 : getHotelName().hashCode());
        result = prime * result + ((getHotelAddress() == null) ? 0 : getHotelAddress().hashCode());
        result = prime * result + ((getHotelPhone() == null) ? 0 : getHotelPhone().hashCode());
        result = prime * result + ((getHotelLevel() == null) ? 0 : getHotelLevel().hashCode());
        result = prime * result + ((getDayRoomInfoId() == null) ? 0 : getDayRoomInfoId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hotelName=").append(hotelName);
        sb.append(", hotelAddress=").append(hotelAddress);
        sb.append(", hotelPhone=").append(hotelPhone);
        sb.append(", hotelLevel=").append(hotelLevel);
        sb.append(", dayRoomInfoId=").append(dayRoomInfoId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}